from selenium import webdriver
import time

driver = webdriver.Edge(r"C:\ProgramData\Anaconda3\msedgedriver.exe")

driver.get(r"file:///D:\Downloads\ALiYunDrive\学习\计算机大三下\软件测试\实验8 Selenium API示例代码实验（一）\Selenium API示例代码\html\注册A.html")

driver.find_element_by_css_selector("p#pa>input").send_keys("test1")
driver.find_element_by_css_selector("#pa>input").send_keys("test2")
driver.find_element_by_css_selector("p#pa input").send_keys("test3")

time.sleep(3)

driver.quit()
